package com.xq.shop.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @author gaoxiaojin
 */
@Data
public class RegisterDto {

    /**
     * 邮箱
     */
    @NotBlank(message = "username不能为空")
    private String username;

    /**
     * 昵称
     */
    @NotBlank(message = "nickname不能为空")
    private String nickname;

    /**
     * 密码
     */
    @NotBlank(message = "password不能为空")
    private String password;

    @NotBlank(message = "code不能为空")
    private String code;
}
